﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodeGenerator.DBInfo.entity
{
    /// <summary>
    /// 数据库表信息
    /// </summary>
    public class TableInfo
    {
        /// <summary>
        /// 数据库表名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 去除前缀的表名
        /// </summary>
        public string TrimPrefixName { get; set; }
        /// <summary>
        /// 数据库表注释
        /// </summary>
        public string Comment { get; set; }    
        /// <summary>
        /// 表字段信息
        /// </summary>
        public List<ColumnInfo> Columns { get; set; }
        /// <summary>
        /// 主键数量
        /// </summary>
        public int PrimaryKeyCount { get; set; }
    }
}
